import time
from multiprocessing import Process

def speck():
    for i in range(5):
        print('speck')
        time.sleep(1)
if __name__ == '__main__':
    t = time.time()
    # 创建了 process对象
    p = Process(target=speck)
    p.start()
    # 主程序等待子进程结束后再结束
    p.join()
    print("over")
    print(time.time() - t)